package com.hxzy.module.back.api.backaccount;

import com.hxzy.framework.common.resp.R;
import com.hxzy.module.back.api.backaccount.resp.BackAccountResp;
import com.hxzy.module.back.api.enums.ApiConstants;
import com.hxzy.module.back.api.fallback.BackFeignApiFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author wy
 * @Description TODO
 * @Date 2024/1/26 14:06
 * @Version 1.0
 */
@FeignClient(name = ApiConstants.SERVER_NAME,fallbackFactory = BackFeignApiFallbackFactory.class)
public interface BackFeignApi {

    /**
     * 中台根据账号查询数据
     * @param account
     * @return
     */
    @GetMapping(value = "/backAccount/find/{account}")
    R<BackAccountResp> findByAccount(@PathVariable(value = "account") String account);

}
